﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="complaintsList.aspx.cs"
    Inherits="PeisongWeb.admin.complaintsList" %>

<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register TagName="top" Src="controls/top.ascx" TagPrefix="uc1" %>
<%@ Register TagName="menu" Src="controls/menu.ascx" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>投诉管理 - 想购网长期采购物流配送系统</title>
    <!--#include file="style.inc"-->

    <script type="text/javascript">
        function resetSrh() {
            document.getElementById("txt_orderno").value = "";
            document.getElementById("ddl_status").value = "";
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <ext:ScriptManager ID="ScriptManager1" runat="server" />
    <uc1:top ID="Top1" runat="server" />
    <uc2:menu ID="Menu1" runat="server" />
    <div id="admin-body">
        <h2 class="section-cms">
            投诉管理
        </h2>
        <p>
            &nbsp;</p>
        <ext:Panel ID="Panel1" runat="server" Title="投诉搜索" BodyStyle="padding:5px 5px 0"
            Width="960" Frame="true" ButtonAlign="Center">
            <Body>
                <ext:Panel ID="Panel5" runat="server">
                    <Body>
                        <ext:ColumnLayout ID="ColumnLayout2" runat="server">
                            <ext:LayoutColumn ColumnWidth=".5">
                                <ext:Panel ID="Panel6" runat="server" Border="false" Header="false">
                                    <Body>
                                        <div id="admin_edit_content_search">
                                            <ul>
                                                <li>
                                                    <label>
                                                        订单编号
                                                    </label>
                                                    <asp:TextBox runat="server" ID="txt_orderno"></asp:TextBox>
                                                </li>
                                                <li style="width: auto; margin-right: 20px">
                                                    <label>
                                                        状态
                                                    </label>
                                                    <asp:DropDownList runat="server" ID="ddl_status" DataTextField="name" DataValueField="xm">
                                                        <asp:ListItem Text="-- 请选择状态 --" Value=""></asp:ListItem>
                                                        <asp:ListItem Text="已提交" Value="1"></asp:ListItem>
                                                        <asp:ListItem Text="客户取消" Value="2"></asp:ListItem>
                                                        <asp:ListItem Text="处理中" Value="3"></asp:ListItem>
                                                        <asp:ListItem Text="处理完成" Value="4"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </li>
                                                <li>
                                                    <label>
                                                        &nbsp;
                                                    </label>
                                                    [<asp:LinkButton ID="lbtn_Search" runat="server" Text="搜 索" OnClick="lbtn_Search_Click">
                                                    </asp:LinkButton>]&nbsp;&nbsp;&nbsp; [<a href="javascript:resetSrh();">重 置</a>]
                                                </li>
                                            </ul>
                                        </div>
                                    </Body>
                                </ext:Panel>
                            </ext:LayoutColumn>
                        </ext:ColumnLayout>
                    </Body>
                </ext:Panel>
            </Body>
        </ext:Panel>
        <p>
            &nbsp;</p>
        <div id="admin_list_content">
            <table cellpadding="0" cellspacing="0">
                <tr class="header-row">
                    <th>
                        订单编号
                    </th>
                    <th>
                        用 户 名
                    </th>
                    <th>
                        所属企业
                    </th>
                    <th>
                        投诉内容
                    </th>
                    <th>
                        投诉时间
                    </th>
                    <th>
                        状态
                    </th>
                    <th>
                        操作
                    </th>
                </tr>
                <asp:Repeater ID="rpt_list" runat="server" OnItemCommand="rpt_list_ItemCommand">
                    <ItemTemplate>
                        <tr class='<%# Container.ItemIndex%2==0? "row-alt":"alt"  %>'>
                            <td>
                                <%# Eval("orderno")%>
                            </td>
                            <td>
                                <%# Eval("customerName")%>
                            </td>
                            <td>
                                <%# Eval("company")%>
                            </td>
                            <td>
                                <%# Eval("complaints")%>
                            </td>
                            <td>
                                <%# Eval("inputDt")%>
                            </td>
                            <td>
                                <%# Eval("statusName")%>
                            </td>
                            <td>
                      
                                <asp:Label runat="server" ID="lbl_status" Text="客户已取消" Visible='<%#Convert.ToInt32(Eval("status"))!=2?false:true%>'></asp:Label>
                                
                                <asp:LinkButton ID="lbt_showDetails" runat="server" CommandName="details" CausesValidation="false"
                                    CommandArgument='<%# Eval("complaintId") %>' Text="查看详细信息" Visible='<%#Convert.ToInt32(Eval("status"))==2?false:true%>'>
                                </asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
            <div id="page">
                <webdiyer:AspNetPager ID="AspNetPager1" NumericButtonType="Text" MoreButtonType="Text" OnPageChanged="AspNetPager1_PageChanged"
                    runat="server" AlwaysShow="True" PageSize="20" InvalidPageIndexErrorMessage="无效页码"
                    PageIndexOutOfRangeErrorMessage="页码超出范围" ShowCustomInfoSection="Left" CustomInfoHTML=" 每页%PageSize%条记录 | 总共%RecordCount%条记录 "
                    CustomInfoTextAlign="Left" HorizontalAlign="Right" NextPageText="下一页" FirstPageText="首页"
                    LastPageText="末页" PrevPageText="上一页">
                </webdiyer:AspNetPager>
            </div>
        </div>
        <ext:Window ID="complaints_details" runat="server" Title="投诉详情" Height="550px" Width="800px"
            BodyStyle="padding: 6px; background-color: #fff;" AutoScroll="true" Modal="True"
            Resizable="false" ShowOnLoad="false" Draggable="false" Icon="ApplicationViewDetail">
            <Body>
                <div class="details" style="width: 520px;">
                    <ul style="width: 520px;">
                        <li>
                            <label>
                                订单编号：</label>
                            <asp:Label runat="server" ID="lbl_orderNo"></asp:Label>
                        </li>
                        <li>
                            <label>
                                用户名：</label>
                            <asp:Label runat="server" ID="lbl_customerName"></asp:Label>
                        </li>
                        <li>
                            <label>
                                所属公司：</label>
                            <asp:Label runat="server" ID="lbl_company"></asp:Label>
                        </li>
                        <li>
                            <label>
                                投诉内容：</label>
                            <asp:Label runat="server" ID="lbl_complaints"></asp:Label>
                        </li>
                        <li>
                            <label>
                                投诉时间：</label>
                            <asp:Label runat="server" ID="lbl_inputDt"></asp:Label>
                        </li>
                        <li style="width: 500px">
                            <label>
                                处理意见：</label>
                            <asp:Label runat="server" ID="lbl_process"></asp:Label>
                            <asp:TextBox runat="server" ID="txt_Process" Width="320" Height="150" MaxLength="1000"></asp:TextBox>
                        </li>
                        <li class="long" style="width: 500px;">
                            <label>
                                &nbsp;</label>
                            <asp:RequiredFieldValidator ID="rfv_Process" runat="server" ErrorMessage="请输入处理意见"
                                Visible="false" ControlToValidate="txt_Process" Display="Dynamic"></asp:RequiredFieldValidator>
                            &nbsp; </li>
                        <li runat="server" id="li_admin">
                            <label>
                                回复者：</label>
                            <asp:Label runat="server" ID="lbl_adminName"></asp:Label>
                        </li>
                        <li runat="server" id="li_processDt">
                            <label>
                                处理时间：</label>
                            <asp:Label runat="server" ID="lbl_processDt"></asp:Label>
                        </li>
                        <li>
                            <label>
                                状态：</label>
                            <asp:Label runat="server" ID="lbl_statusName"></asp:Label>
                        </li>
                        <li class="long" style="width: 500px;">
                            <label>
                                &nbsp;</label>
                            <asp:Button runat="server" ID="btn_Process" Text="保 存" OnClick="btn_Process_Click" />
                            <input type="hidden" id="hd_complaintsid" runat="server" />
                        </li>
                    </ul>
                    <p>
                        &nbsp;</p>
                </div>
            </Body>
        </ext:Window>
    </div>
    </form>
</body>
</html>
